<template>
     <div class="header-bottom">
      <div class="line"></div>
      <div class="header-menu layui-main">
        <ul>
          <li v-for="(item,index) in navList" :key="index">
            <router-link :to="item.path" active-class="header-menu-active">
              {{ item.title }}
            </router-link>
          </li>
        </ul>
      </div>
      <div class="line"></div>
    </div>
</template>

<script>
export default {
    name:'MiicNavbar',
    data() {
        return {
              navList: [
        {
          title: "活动内容",
          path: "/home",
        },
        {
          title: "日程安排",
          path: "/schedule",
        },
        {
          title: "会议报名",
          path: "/2",
        },
         {
          title: "展览活动",
          path: "/3",
        },
        {
          title: "合作伙伴",
          path: "/4",
        },
         {
          title: "新闻中心",
          path: "/newsCenter",
        },
        {
          title: "服务中心",
          path: "/serviceCenter",
        },
        {
          title: "联系我们",
          path: "/contactUs",
        },
     
      ],
        }
    },
}
</script>

<style scoped>
.layui-main {
  position: relative;
  width: 1160px;
  margin: 0 auto;
}
.header-bottom {
  display: flex;
}
.header-bottom .line {
  flex: 1;
  height: 30px;
  background: #0E2F81;
}
.header-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 70px;
  background: url("@/assets/images/daohang.png")
    no-repeat;
  background-size: 100% 100%;
  white-space: nowrap;
}
.header-menu ul {
  display: flex;
  justify-content: space-between;
  flex: 1;
  align-items: center;
  font-size: 24px;
  color: #ffffff;
  /* padding: 10px; */
  margin: 0 4%;
}
.header-menu a {
  color: #ffffff;
  text-decoration: none;
}
.header-top .title {
  font-size: 68px;
  color: #ffffff;
  font-weight: bolder;
  letter-spacing: 8px;

}
.header-top .title-en {
  font-size: 26px;
  color: #ffffff;
  /* font-weight: bolder; */
  margin-top: 6px;
  letter-spacing: 8px;
}
.header-top .title-date {
  margin-top:54px;
  font-size: 32px;
  color: #ffffff;
  /* font-weight: bolder; */
  letter-spacing: 0.05em;
}

.header-menu-active {
  background: #C50000;
  /* font-weight: bold; */
  /* color: #fff !important; */
  border-radius: 40px;
  padding: 4px 10px;
}
</style>